import {createRouter, createWebHashHistory} from 'vue-router'
import index from '@/views/index'
import info from "@/views/info";
import backend from "@/views/backend";
import admin from "@/views/admin";
import admin_user from "@/views/admin_user";
import notify from "@/views/notify";
import contact from "@/views/contact";
const routes = [
    {
        path: '/',
        name: 'index',
        components: {index}
    },
    {
        path: '/info',
        name: 'info',
        components: {info}
    },
    {
        path: '/admin',
        name: 'backend',
        components: {backend}
    },
    {
        path: '/wwwww',
        name: 'admin',
        components: {admin}
    },
    {
        path: '/wwwww/user/:school_id',
        name: 'admin_user',
        components: {admin_user}
    },
    {
        path: '/notify/:n_id/:id?',
        name: 'notify',
        components: {notify}
    },
    {
        path: '/contact',
        name: 'contact',
        components: {contact}
    }
]

const router = createRouter({
    history: createWebHashHistory(process.env.BASE_URL),
    routes
})

export default router
